package com.rmy.publish.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.rmy.common.annotation.Excel;
import com.rmy.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 页面信息对象 mips_page_info
 *
 * @author rmy
 * @date 2023-05-26
 */
public class MipsPageInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 页面主键 */
    private Long pageId;

    /** 节目主键 */
    @Excel(name = "节目主键")
    private Long programId;

    /** 页面名称 */
    @Excel(name = "页面名称")
    private String pageName;

    /** 宽度px */
    @Excel(name = "宽度px")
    private Long width;

    /** 高度px */
    @Excel(name = "高度px")
    private Long height;

    /** 背景色 */
    @Excel(name = "背景色")
    private String backgroundColor;

    /** 背景图片 */
    @Excel(name = "背景图片")
    private String backgroundImage;

    /** 页面切换时间 */
    @Excel(name = "页面切换时间")
    private Long switchSeconds;

    /** 播放排序 */
    @Excel(name = "播放排序")
    private Long playSort;


    List<MipsControllerInfo> controllerInfoList;

    public void setPageId(Long pageId)
    {
        this.pageId = pageId;
    }

    public Long getPageId()
    {
        return pageId;
    }
    public void setProgramId(Long programId)
    {
        this.programId = programId;
    }

    public Long getProgramId()
    {
        return programId;
    }
    public void setPageName(String pageName)
    {
        this.pageName = pageName;
    }

    public String getPageName()
    {
        return pageName;
    }
    public void setWidth(Long width)
    {
        this.width = width;
    }

    public Long getWidth()
    {
        return width;
    }
    public void setHeight(Long height)
    {
        this.height = height;
    }

    public Long getHeight()
    {
        return height;
    }
    public void setBackgroundColor(String backgroundColor)
    {
        this.backgroundColor = backgroundColor;
    }

    public String getBackgroundColor()
    {
        return backgroundColor;
    }
    public void setBackgroundImage(String backgroundImage)
    {
        this.backgroundImage = backgroundImage;
    }

    public String getBackgroundImage()
    {
        return backgroundImage;
    }
    public void setSwitchSeconds(Long switchSeconds)
    {
        this.switchSeconds = switchSeconds;
    }

    public Long getSwitchSeconds()
    {
        return switchSeconds;
    }
    public void setPlaySort(Long playSort)
    {
        this.playSort = playSort;
    }

    public Long getPlaySort()
    {
        return playSort;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("pageId", getPageId())
            .append("programId", getProgramId())
            .append("pageName", getPageName())
            .append("width", getWidth())
            .append("height", getHeight())
            .append("backgroundColor", getBackgroundColor())
            .append("backgroundImage", getBackgroundImage())
            .append("switchSeconds", getSwitchSeconds())
            .append("playSort", getPlaySort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }

    public List<MipsControllerInfo> getControllerInfoList() {
        return controllerInfoList;
    }

    public void setControllerInfoList(List<MipsControllerInfo> controllerInfoList) {
        this.controllerInfoList = controllerInfoList;
    }
}
